package com.matt.foundation.DO;

import com.matt.commons.dto.sso.StaffDTO;
import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/9/5
 * *******************************
 */
@Data
public class TeacherDO {

    private String id;

    private String name;

    private String imgUrl;

    public static TeacherDO of(StaffDTO dto){
        TeacherDO DO = new TeacherDO();
        DO.setId(dto.getId());
        DO.setName(dto.getRealName());
        DO.setImgUrl(dto.getHeadImgUrl());
        return DO;
    }
}
